package com.gulimall.product;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.gulimall.product.dao")
//@ComponentScan(value = {"com.mq.common.rabbitmq","com.gulimall.product"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.gulimall.common.api")
@Slf4j
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
        log.info("【【【【【Topic队列消息Consumer启动成功】】】】】");
    }

}
